/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fhv.itb.ec.fruitshop;

import java.util.HashMap;
import javax.ejb.Stateful;

/**
 *
 * @author Malcolm
 */
@Stateful
public class FruitBasketBean implements FruitBasketRemote, FruitBasketLocal {

    private FruitShopBean m_fsb;

    public FruitBasketBean() {
        m_fsb = new FruitShopBean();
        Long shopID = m_fsb.createShop();
    }

    public void selectShop(int shopID) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String[] listAvailableFruits(int shopID) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * Gets the total number of fruits in the basket.
     * 
     * @return
     * The total number of fruits in the basket.
     */
    public int getNumOfFruits() {
        return 0;
//        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * Gets the total cost of all the fruits in the basket.
     * 
     * @return
     * The total cost of all the fruits in the basket.
     */
    public int getCostOfFruits() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * Gets a list of all the fruits in the basket.
     * 
     * @return
     * A list of all the fruits in the basket.
     */
    public String getContents() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * Adds the specified number of fruits to the basket.
     * 
     * @param id The ID of the fruit to be added.
     * @param amount The amount of this fruit to be added.
     */
    public void addFruit(int shopID, int fruitID) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * Removes the specified amount of the specified fruit from the basket.
     * 
     * @param id The ID of the fruit to be removed.
     * @param amount The amount of this fruit to be removed.
     */
    public void removeFruit(int shopID, int fruitID) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * Purchase all the fruits in the basket.
     * 
     * @return
     * true, if the purchase was successful, false otherwise.
     */
    public boolean buyFruits(int shopID) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
